package com.candy.dao;

import java.util.LinkedHashMap;
import java.util.LinkedList;
import java.util.Set;

public class Test01 {
	public static void main(String[] args) {
		LinkedList<LinkedHashMap<String, Object>> datalist= DBHelper.query("select * from userinfo where username=? and userpwd=?", "admin","admin");
		for(LinkedHashMap<String, Object> row:datalist) {
//			取出所有key组成的set集合
			Set keyySet=row.keySet();
	
			for(Object key:keyySet) {
				System.out.println("key:"+key+"value:"+row.get(key));
			}
			
			
		}
		
	}

}
